package com.mdd.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel("产品实体")
@TableName("product")
public class Product implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "产品ID")
    private Integer id;

    @ApiModelProperty(value = "分类ID")
    private Integer categoryId;

    @ApiModelProperty(value = "产品名称")
    private String name;

    @ApiModelProperty(value = "产品描述")
    private String description;

    @ApiModelProperty(value = "主图")
    private String image;

    @ApiModelProperty(value = "产品图片集，JSON格式")
    private String images;

    @ApiModelProperty(value = "产品详情")
    private String details;

    @ApiModelProperty(value = "搜索关键词")
    private String keywords;

    @ApiModelProperty(value = "是否热门：0-否，1-是")
    private Integer isHot;

    @ApiModelProperty(value = "是否最新：0-否，1-是")
    private Integer isNew;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "状态：0-下架，1-上架")
    private Integer status;

    @ApiModelProperty(value = "浏览量")
    private Integer views;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

}